package com.dhl.fin.api.common.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author CuiJianbo
 * @since 2025/4/6
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(name = "t_exception_record")
public class ExceptionRecord extends BasicDomain {

    public ExceptionRecord() {
    }

    public ExceptionRecord(String code, String message, String businessData) {
        this.code = code;
        this.message = message;
        this.businessData = businessData;
    }


    /**
     * 异常数据Code
     */
    @Column(columnDefinition = "varchar(20)")
    private String code;

    /**
     * 异常数据信息
     */
    @Column(columnDefinition = "varchar(200)")
    private String message;

    /**
     * 业务数据
     */
    @Column(columnDefinition = "varchar(2000)")
    private String businessData;

}
